<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
function fandeng() {
	window.location="login.jsp"
}	
function fanzhu() {
	window.location="main?method=main"
}	
</script>
</head>
<body>
<table border="1">
	<tr>
		<th>学号</th>
		<th>姓名</th>
		<th>成绩</th>
	
	</tr>
	<c:forEach items="${grades}" var="g">
		<tr>
			<td>${g.student.stuNo }</td>
			<td>${g.student.name }</td>
			<td><input type="text" value="${g.grade }" onchange="cjChange(${g.id },this.value)"></td>
		</tr>	
	</c:forEach>
	<button onclick="fandeng()" class="but">返回登录页面</button>
	<button onclick="fanzhu()" class="but">返回主页面</button>
</table>
</body>
</html>